package com.stu.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.time.LocalDateTime;


public class User implements Serializable{

  private Integer userId;
  private String userName;
  private String userPassword;
  private String userTel;
  private String userEmail;
  private java.time.LocalDateTime userCreated;
  private java.time.LocalDateTime userUpdated;
  private Integer status;
  private Integer version;

  public User() {
  }

  public User(Integer userId, String userName, String userPassword, String userTel,
              String userEmail, LocalDateTime userCreated, LocalDateTime userUpdated,
              Integer status, Integer version) {
    this.userId = userId;
    this.userName = userName;
    this.userPassword = userPassword;
    this.userTel = userTel;
    this.userEmail = userEmail;
    this.userCreated = userCreated;
    this.userUpdated = userUpdated;
    this.status = status;
    this.version = version;
  }

  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }

  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }

  public String getUserPassword() {
    return userPassword;
  }

  public void setUserPassword(String userPassword) {
    this.userPassword = userPassword;
  }

  public String getUserTel() {
    return userTel;
  }

  public void setUserTel(String userTel) {
    this.userTel = userTel;
  }

  public String getUserEmail() {
    return userEmail;
  }

  public void setUserEmail(String userEmail) {
    this.userEmail = userEmail;
  }

  public LocalDateTime getUserCreated() {
    return userCreated;
  }

  public void setUserCreated(LocalDateTime userCreated) {
    this.userCreated = userCreated;
  }

  public LocalDateTime getUserUpdated() {
    return userUpdated;
  }

  public void setUserUpdated(LocalDateTime userUpdated) {
    this.userUpdated = userUpdated;
  }

  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  public Integer getVersion() {
    return version;
  }

  public void setVersion(Integer version) {
    this.version = version;
  }

  @Override
  public String toString() {
    return "User{" +
            "userId=" + userId +
            ", userName='" + userName + '\'' +
            ", userPassword='" + userPassword + '\'' +
            ", userTel='" + userTel + '\'' +
            ", userEmail='" + userEmail + '\'' +
            ", userCreated=" + userCreated +
            ", userUpdated=" + userUpdated +
            ", status=" + status +
            ", version=" + version +
            '}';
  }
}
